package routes

import (
	"github.com/kataras/iris"
	"github.com/siaoynli/goProject/web/bootstrap"
	"fmt"
)

func  userRouter(app *bootstrap.App){
	app.PartyFunc("/user", func(user iris.Party) {
		user.Use(func(ctx iris.Context) {
			fmt.Println("用户")
			ctx.Next()
		})

		user.Get("/index", func(ctx iris.Context) {
			ctx.WriteString("users index")
		})
	})

}